package ae.pcfc.etks.online.itworx.ehs.web.constants;

public class GlobalConstants {
	 
	//Declaration of the Validation expressions
	public static final int BCC_LENGTH = 30;
	public static final int REQUESTEDBY_LENGTH = 50;
	public static final int CONTACT_PERSON_NAME_LENGTH = 50;
	public static final int DOCUMENT_TYPE_TITLE_LENGTH = 150;
	public static final String MAIL_REGEXP = "(?i)[A-Z0-9._%-]+@[A-Z0-9._%-]+\\.[A-Z]{2,4}";
	public static final String MOBILE_REGEXP = "\\Q+\\E\\d{5}(\\d{1})?(\\d{1})?(\\d{1})?(\\d{1})?(\\d{1})?(\\d{1})?(\\d{1})";

	public static final String REQUEST_ID_REGEXP = "^(?i)(EHS_OFC_(New|Amendment|Renewal)_(19|20)\\d\\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])_([1-9](\\d+)?))$";
	
	//Logging
	public static final String EXCEPTION_MESSAGES_PREFIX = "error.exception.";
	
	//Model Attributes
	public static final String OFC_REQUEST = "ofcRequest";
	public static final String OFC_REQUEST_MODEL = "ofcRequestModel";
	public static final String DOCUMENT_TYPE_LIST_JSON = "documentTypesJSON";
	public static final String DOCUMENT_TYPE = "documentType";
	public static final String REQUEST_SEARCH_CRITERIA="requestSearchCriteria";
	public static final String TRAKHEES_REQUEST_PARAMETER="trakheesRequestParameter";
	public static final String REQUEST_ID = "requestId";
	public static final String ACTION = "action";
	
	public static final String SUCCESS_PARAM = "success";
	
	public static final String FNP_COMPENSATION_MANAGER_KEY = "fnpManager";
	public static final String IMS_COMPENSATION_MANAGER_KEY = "imsManager";
	
	public static final String MY_INBOX="inbox";
	public static final String MY_REQUESTS ="myRequests";
	public static final String USER_NAME_ATTRIBUTE="userName";
	public static final String USER_ID_ATTRIBUTE = "userId";
	public static final String TYPE_ATTRIBUTE="type";
	
	//urls
	public static final String FILE_DOWNLOAD = "/download.htm";
	
	public static final String FILE_CONTENT = "application/pdf";
	
	//mail templates names
	public static final String FNP_TEMPLATE = "fnp";
	public static final String DOCUMENT_TEMPLATE = "document";
	public static final String RECEIPT_TEMPLATE = "receipt";
	
	//mail paramters
	public static final String USERNAME = "username";
	public static final String CUSTOMER_NAME = "customerName";
	public static final String CUSTOMER_COMPANY = "customerCompany";
	public static final String REQUEST_NO = "requestNo";
	public static final String ADVICE_NUMBER = "adviceNumber";
	public static final String DOCUMENT_URL = "documentURL";
	public static final String PAYMENT_ADVICE_NUMBER = "paymentAdviceNumber";
	public static final String REQUEST_TYPE = "requestType";
	public static final String SERVICE_FRIENDLY_NAME = "serviceFrinedlyName";
	public static final String CREATION_DATE = "creationDate";
	public static final String PAYMENT_FEES = "paymentFees";
	public static final String TRAKHEES_ID = "trakheesId";
	
	public static final String CUSTOMER_ROLE = "EHS_CUSTOMER";
	
	public static final String OFFICER_ROLE = "EHS_OFFICER";
	
	//public static final String OFFICER_ROLE2 = "ROLE_COMPANY_ADMIN";
	
	//public static final String OFFICER_ROLE3 = "ROLE_ADMIN_IT";
	
	//IMS
	public static final String BUSINESS_UNIT="DMCC";
	public static final String INSPECTION_CODE="OFC";
	
	public static final String DEFAULT_DATE_FORMAT = "dd MMM yyyy";
	public static final String DEFAULT_VIEW_DATE_FORMAT = "dd MMMM yyyy";
	public static final String DEFAULT_VIEW_ID_DATE_FORMAT = "yyyy-MM-dd";
	
	public static final String MAX_UPLOADED_DOC_COUNT_KEY="documentCount";
	public static final String MAX_UPLOADED_DOC_SIZE_KEY="documentSize";
	
	// FNP
	public static final String INITIAL_PAYMENT_ADVICE="-InitialPA";
	public static final String ADDITIONAL_PAYMENT_ADVICE="-AdditionPA";
	public static final String CANCEL_PAYMENT_ADVICE="-CancelPA";
	public static final String FEES_FORMAT="###,###.##";
	public static final String FNP_EHS_ONLINE_SOURCE_ID="EHSONLINE";
	public static final String FNP_GET_SERVICE_CATALOGUE_ALL="ALL";
	public static final String FNP_EHS_ONLINE_OFC_SERVICE="OFC";
	
	
	
	
}
